export default function checkColor() {
  const checkTagButtonColor = (color: string) => {
    switch (color) {
      case "待开始":
        return "rgb(128,171,5)";
      case "报名中":
        return "rgb(4,138,18)";
      case "待上传":
        return "rgb(0,125,190)";
      case "评审中":
        return "rgb(243,148,34)";
      case "公示中":
        return "rgb(109,200,225)";
      case "已结束":
        return "rgb(187,187,187)";
      default:
        return "rgb(187,187,187)";
    }
  }
  const checkStateColor = (color: string) => {
    switch (color) {
      case "启用":
        return "#67C23A";
      case "禁用":
        return "#F56C6C";
      case "待审核":
        return "#73767a";
      default:
        return "#73767a";
    }
  }
  const checkScheduleColor = (color: string) => {
    switch (color) {
      case "待审核":
        return "rgb(61, 154, 184)";
      case "报名中":
        return "#67C23A";
      case "进行中":
        return "#67C23A";
      case "评审中":
        return "#67C23A";
      case "公示中":
        return "#67C23A";
      case "奖品发放中":
        return "#67C23A";
      case "已结束":
        return "#F56C6C";
      case "已暂停":
        return "#F56C6C";
      case "已驳回":
        return "#F56C6C";
      default:
        return "#73767a";
    }
  }
  const checkParticipantsNumberStateColor = (color: string) => {
    switch (color) {
      case "待审核":
        return "#67C23A";
      case "待评审":
        return "rgb(61, 154, 184)";
      case "已评审":
        return "#F56C6C";
      default:
        return "#67C23A";
    }
  }
  const checkWorkStateColor = (color: string) => {
    switch (color) {
      case "未提交":
        return "rgb(35, 159, 249)";
      case "未参与":
        return "rgb(236, 0, 0)";
      case "已提交":
        return "rgb(4, 138, 18)";
      default:
        return "rgb(4, 138, 18)";
    }
  }
  return {
    checkTagButtonColor,
    checkStateColor,
    checkScheduleColor,
    checkParticipantsNumberStateColor,
    checkWorkStateColor
  }
}